<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数组排序</title>
    
</head>
<body>
    <script type="text/javascript">
        var arr = [14, 41, 13, 26, 32, 49, 27];
        console.log(arr);
        // 数组倒序
        arr.reverse();
        console.log(arr);
        // 排序 升序或者降序 按照ASCII码进行排序
        arr.sort();
        console.log(arr);
        arr.reverse();
        console.log(arr);

        // .charCodeAt() 查看字符ASCII码
        console.log(arr[0].toString().charCodeAt());
    </script>
</body>
</html>